package com.gary.security.repository;

import com.gary.core.repository.BaseRepository;
import com.gary.security.model.RescInfo;
import com.gary.security.model.RoleInfo;
import com.gary.security.model.UserInfo;

public interface RoleRepository extends BaseRepository<RoleInfo> {

    /**
     * 将资源保存到缓存里.
     *
     * @param resc 资源
     */
    public void saveRoleInCache(RescInfo resc);

    /**
     * 刷新用户权限.
     *
     * @param user User
     */
    public void flushUserAuth(UserInfo user);
}
